<!DOCTYPE html>
<html>
<head>
<title><%=model.site_name%> in <%=city.name%> - <%=country.name%></title>
<meta name="description" content="On this page a user can look through the detailed list of branch locations of MoneyGram departments in <%=city.name%> - <%=country.name%><% if (text_list!=null && text_list.length>0){%>, <%=text_list[0].trim()%><%}%>">
<meta name="keywords" content="<%=model.site_name%>, <%=country.name%>, <%=city.name%>">
<meta charset="utf-8" />
<link rel="icon" href="<%=model.site_url%>/img/favicon.ico">
<link rel="stylesheet" href="<%=model.site_url%>/css.css" type="text/css" media="screen, projection" />
<script src="<%=model.site_url%>/scripts/jquery.js"></script>
<script src="<%=model.site_url%>/scripts/scroll.js"></script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="<%=model.site_url%>/scripts/css3-multi-column.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="<%=model.site_url%>/scripts/PIE_IE678.js"></script>
<![endif]-->
<!--[if IE 9]>
<script type="text/javascript" src="<%=model.site_url%>/scripts/PIE_IE9.js"></script>
<![endif]-->
</head>


<body>
<div id="relative">

<header>
<div id="header">
<div class="wrap">
	<div id="logo"><a href="<%=model.site_url%>/" title="Home"><img src="<%=model.site_url%>/img/logo.png" width="256" height="70" alt="<%=model.site_name%> Logo"></a></div>
	<div id="header-content">
                      <%
                      if (text_list!=null){
                      for (var i=0; i<text_list.length; i++){
                      %><%=text_list[i]%> <%
                      }
                      }
                      %>
	</div>
	<div class="clear-right"></div>
	<nav>
	<div id="menu-top">
		<ul>
		<li><a href="<%=model.site_url%>/" title="Home">Home</a></li>
		<li><a href="<%=model.site_url%>/about.html" title="About">About</a></li>
		</ul>
	</div>
	<div class="clear-right"></div>
	</nav>
</div>
</div>
<div id="shadow-bottom"></div>
</header>


<div id="middle-otstup">
<div class="wrap">
<div id="middle">
	<div id="container">
		<div id="content" role="main">


<h1><%=model.site_name%> in <%=city.name%>, <a href="<%=model.site_url%>/<%=country.file_name%>"><%=country.name%></a></h1>
<div id="cepka"><a href="<%=model.site_url%>/" class="home">Home</a><img src="<%=model.site_url%>/img/str1.gif" width="3" height="7" alt="arrow"><a href="<%=model.site_url%>/<%=country.file_name%>"><%=country.name%></a><img src="<%=model.site_url%>/img/str1.gif" width="3" height="7" alt="arrow"><a href="<%=model.site_url%>/<%=country.file_name%>/<%=city.file_name%>" class="current"><%=city.name%></a></div>

<br>
<table class="tablica1" width="100%">
<tr>
<th>Name</th>
<th>Address, Phone</th>
<th>Work time</th></tr>
	<%
	if (city.department_list!=null){
	for(var i=(page-1)*page_size; i<city.department_list.length && (page_size==0 || i<page*page_size); i++){
	var department=city.department_list[i];
	%>
<tr>
<td><a href="<%=model.site_url%>/<%=country.file_name%>/<%=city.file_name%>/<%=department.file_name%>"><b><%=department.name%></b></a></td>
<td><%=department.address%><br><%=department.zip_code%> <%=city.name%><br><br><b>Phone:</b> <%=department.phone%></td>
<td>
	<%
	if (department.work_time_list!=null){
	for (var j=0; j<department.work_time_list.length;j++){
	var work_time=department.work_time_list[j];
	%><%=work_time.day_of_the_week%>: <%=work_time.time%><br><%
	}
	}
	%>
</td></tr>
	<%
	}
	}
	%>
</table>


<br><br>
<b>Search <%=model.site_name%> in <a href="<%=model.site_url%>/<%=country.file_name%>"><%=country.name%></a></b>


	<%
	if (page_size>0){
	var pageCount=Math.ceil(city.department_list.length/page_size);
	if (pageCount>1){
	%>
	<div class="pagination">
	<%
	for (var i=1; i<=pageCount; i++){
	if (i==page){
	%>
	<span class="current"><%=i%></span> &nbsp;<%
	}else{
	pageUrl=city.file_name+'-'+i;
	%> <a href="<%=pageUrl%>"><%=i%></a> &nbsp;<%
	}
	}
	%>
	</div>
	<%
	}
	}
	%>

<br><br><br>
<ul>
	<%
	if (link_list!=null){
	for (var i=0; i<link_list.length; i++){
	if (link_list[i].department!=null){
	%><li><a href="<%=model.site_url%>/<%=link_list[i].country.file_name%>/<%=link_list[i].city.file_name%>/<%=link_list[i].department.file_name%>" title="<%=link_list[i].department.name%>"><%=model.site_name%> in <%=link_list[i].city.name%>, <%=link_list[i].country.name%></a>&nbsp;&mdash; <%=link_list[i].department.name%></li><%
	}else if (link_list[i].city!=null){
	%><li><a href="<%=model.site_url%>/<%=link_list[i].country.file_name%>/<%=link_list[i].city.file_name%>" title="<%=link_list[i].city.name%>"><%=model.site_name%> in <%=link_list[i].city.name%>, <%=link_list[i].country.name%></a></li><%
	} else {
	%><li><a href="<%=model.site_url%>/<%=link_list[i].country.file_name%>" title="<%=link_list[i].country.name%>"><%=model.site_name%> in <%=link_list[i].country.name%></a></li><%
	}
	}
	}
	%>
</ul>




		</div>
	</div>
	<div id="sideLeft" role="complementary">
		<div id="menu1s">
		<ul>
	<%
	if (country.city_list!=null){
	for(var i=0; i<country.city_list.length; i++){
	var menu_city=country.city_list[i];
	%><li<%if (city.file_name==menu_city.file_name){%> class="current"<%} %>><a href="<%=model.site_url%>/<%=country.file_name%>/<%=menu_city.file_name%>" title="<%=menu_city.name%>"><%=menu_city.name%></a></li>
	<%
	}
	}
	%>
		</ul>
		</div>
	</div>
</div>
</div>
<div id="shadow-bottom2"></div>
</div>




<footer>
<div id="bottom">
<div class="wrap">
	<div id="copyright">
		Copyright &copy; 2013 &nbsp; | &nbsp; <a href="<%=model.site_url%>/">&laquo;<%=model.site_name%>&raquo;</a> &nbsp; | &nbsp; All rights reserved
	</div>
</div>
</div>

<div id="totopup"><img src="<%=model.site_url%>/img/0.gif" id="top" width="1" height="1" alt="top"></div>
<div id="totop"><a href="#top"><img src="<%=model.site_url%>/img/0.gif" width="32" height="32" alt="top"></a></div>
</footer>

</div>
  </body>
</html>
